EXTRA_DIST = pysl/__init__.py \
	     pysl/slsh.py \
	     pysl/test.py \
	     setup.py \
	     src/_pyslmodule.c

SETUP = setup.py

all: setup_build

setup_build:
	$(PYTHON) $(SETUP) build_ext \
		--include-dirs=$(SLANG_INC):../libpysl \
		--rpath=$(libdir):$(SLANG_LIB) \
		--library-dirs=../libpysl/.libs:$(SLANG_LIB) \
		build

install: setup_build
	$(PYTHON) $(SETUP) install --prefix=$(prefix)

clean:
	$(PYTHON) $(SETUP) clean
	rm -rf build
